package com.itheima.homeweek;

import java.lang.reflect.Array;

public class HomeWeek02 {
    public static void main(String[] args) {
        int[] arr ={1,2,3,4,5};
        int[] arr1 = new int[10];
        System.arraycopy(arr,0,arr1,0,5);
       arr1[5] = 6;
       for(int i=0;i<arr1.length;i++){
           System.out.print(arr1[i]+"  ");
       }
    }
}
